function getSend(url,cb){
    var xhr=new XMLHttpRequest()
    
    xhr.open('GET',url)

    xhr.onload=function(){
        cb(xhr.responseText)
    }
    
    xhr.send()
 }

 function postSend(url,cb,parm){
    var xhr=new XMLHttpRequest()
   
   xhr.open('POST',url)

   xhr.onload=function(){
       cb(xhr.responseText)
   }
   xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded")
   xhr.send(parm)
}